package sql.show.demo;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        Button btnAddProduct =(Button) findViewById(R.id.btn_add);
        btnAddProduct.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent pIntent=new Intent(MainActivity.this,AddProductActivity.class);
				startActivity(pIntent);
			}
		});
        
        Button btnViewProduct =(Button) findViewById(R.id.btn_view);
        btnViewProduct.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent pIntent=new Intent(MainActivity.this,ViewProductActivity.class);
				startActivity(pIntent);
			}
		});
    }


    
}
